package app

import "net/http"

// 重写response 实现ResponseWriter接口

type orangeWrite struct {
	http.ResponseWriter
	statusCode int
}

func (s *orangeWrite) WriteHeader(statusCode int) {
	s.statusCode = statusCode
	s.ResponseWriter.WriteHeader(statusCode)
}

func (s *orangeWrite) Status() int {
	return s.statusCode
}
